package com.juc.semaphore.semaphore10;

public class NoFair {
    public static void main(String[] args) {
        MyServiceNoFair serviceNoFair =  new MyServiceNoFair();
        MyThreadNoFair threadNoFair = new MyThreadNoFair(serviceNoFair);
        threadNoFair.start();

        MyThreadNoFair[] threadArray = new MyThreadNoFair[4];
        for (int i = 0; i < 4; i++) {
            threadArray[i] = new MyThreadNoFair(serviceNoFair);
            threadArray[i].start();
        }
    }
}
